//
//  UIView+Extension.h
//  VirtualCurrency
//
//  Created by apple on 2021/7/5.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Extension)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGPoint origin;
@property (nonatomic, assign, readonly) CGFloat maxX;
@property (nonatomic, assign, readonly) CGFloat maxY;
@property (nonatomic, assign) CGFloat xAndWidth;
@property (nonatomic, assign) CGFloat yAndHeight;

//获取该视图的控制器
- (UIViewController*) viewController;

//删除当前视图内的所有子视图
- (void)removeChildViews;

//删除tableview底部多余横线
- (void)setExtraCellLineHidden: (UITableView *)tableView;

- (void)addRound:(CGFloat)radius;

- (void)addShadowAndRound:(CGFloat)shadowRadius round:(CGFloat)roundRadius;

- (void)addBoard:(CGFloat)radius color: (UIColor *)color;

- (void)addTarget:(id)target selector:(SEL)selector;

@end

NS_ASSUME_NONNULL_END
